<$php

// Define constants
define("MULTIPLIER", 0.085 );
define("ADD_CPC", 1.50 );



function getLocalMonthlySearches( "google stuff" )
{
	return $f_local_monthly_searches;
	// CALL GOOGLE API
	// RETURN USERS.KEYWORDS-SELECTING.LOCAL-MONTHLY-SEARCHES;
}


function getCPC( "google stuff" )
{
	// CALL GOOGLE API
	
	if ( $f_cpc >= 10.01 )
	{
		echo "See Manager for Pricing";
	}
	
	// RETURN USERS CPC
}



// Round up - Ceiling float
function ceilingCap( $f_ems_price )
{
	// ROUND UP TO 25 DOLLAR INCREMENT
	
	// Low price
	if( $f_ems_price < 50 )
	{
		return $f_ems_price = 50;
	}
	
	
	// If it's not a multiple of 25
	if	{ $f_ems_price % 25 != 0 )
	{
		// return ROUND UP TO 25 DOLLAR INCREMENT $f_remainder 
	}
	else
	{
		// Already a whole number
		return $f_ems_price;
	}
}



// EMS custom calculation equation
function CalculateFlatFeeToolEMS( $f_cpc, $f_local_monthly_searches )
{
	$f_ems_price = $f_cpc + ADD_CPC;
	$f_ems_price = $f_ems_price * $f_local_monthly_searches;
	$f_ems_price = $f_ems_price * MULTIPLIER;
	
	// Round up to 25 dollar increment
	ceilingCap( $f_ems_price );
}




// Created by:  sthilberg
?>

